<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:py="http://genshi.edgewall.org/"
	xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"
	py:replace="''" />
</head>

<py:def function="portlet_action()">
	${portlet_action_projects(has_id=True)}
</py:def>

<body id="document" class="tab-grey ">
<div id="view">


${this_project()}

<div>
<p py:if="project.customer"><i>${this.mapper_general['customer']}: <a href="${tg.url('/customers/show', id=customer.customer_id)}">${customer['company_name']}</a></i></p>
<!--
<p><i>${this.mapper_project['enddate']}: ${this.date_i18n(project.enddate)}</i></p>
<p><i>${this.mapper_project['begindate']}: ${this.date_i18n(project.begindate)}</i></p>
 -->
</div>
<!--
<div py:if="milestones" id="view">
	${table_milestones(has_form=False)}
</div>
 -->
	<py:for each="milestone in milestones">
	<div id="view">
    <h4><a onclick="switchMenu('switch-${milestone.name}', 'switch-img-${milestone.name}');">
    <img id="switch-img-${milestone.name}"
    	src="/static/images/leftnav_bg_expanded_small.gif" /></a>
    	<a href="${tg.url('show_milestone', id=milestone.milestone_id)}">Milestone: ${milestone.name}</a></h4>
    <div id="switch-${milestone.name}">
	<pre><i>${milestone.description}</i></pre>
	<table class="listing">
	<tr>
	<th>Tasks
	</th>
	<th>Active Tasks</th>
	</tr>
	<tr>
	<td>
	    <table>
	    <tr>
	    <td>
	     <table class="summary infos">
		 <tr py:for="key, value in data[milestone.name].iteritems()">
			<th>${key}: </th>
			<td>${value}</td>
		 </tr>
	     </table>
	    </td>
	    <td>${ET(ep[milestone.name]())}</td>
	    </tr>
	    </table>

	</td>
	<td>
	    <table>
	    <tr>
	    <td>
	     <table class="summary infos">
		 <tr py:for="key, value in data_active[milestone.name].iteritems()">
			<th>${key}: </th>
			<td>${value}</td>
		 </tr>
	     </table>
	    </td>
	    <td>${ET(ep_active[milestone.name]())}</td>
	    </tr>
	    </table>
	</td>
	</tr>
	</table>
	</div>
	</div>
<script type="text/javascript">
addEvent(window,'load',switchMenu('switch-${milestone.name}', 'switch-img-${milestone.name}'));
</script>
	</py:for>
</div>
</body>
</html>
